﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpaceArcade
{
    
    class Rock : AnimatedSprite
    {
        
        static Random rand;
        public int speedX, speedY;
        public Rock(int x, int y, string path = "strip_rock_type_A.png", int framesCount = 16)
            : base(path, x, y, framesCount)
        {
            rand = new Random();
            speedX = rand.Next(-7, 7);
            speedY = rand.Next(10, 15);
            
            
        }       
       

        public void Fall()
        {
            this.Y += speedY;
            this.X += speedX;
        }
    }
}
